package com.corechina.apex_osswords.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.corechina.apex_osswords.domain.dto.TokenNeedFieldDto;
import com.corechina.apex_osswords.domain.entity.SysUser;
import com.corechina.apex_osswords.domain.entity.SysUserToken;
import com.corechina.apex_osswords.domain.vo.SysLoginInfoVo;

/**
 * <p>
 * 用户token表 服务类
 * </p>
 *
 * @author cc
 * @since 2022-03-03
 */
public interface ISysUserTokenService extends IService<SysUserToken> {

    SysLoginInfoVo login(SysUser sysUser, Integer loginType);

    SysUserToken saveToken(TokenNeedFieldDto tokenNeedFieldDto, Integer loginType);

    Boolean logout(Integer userId);

}
